<?php $this->headTitle($aryProduct['product_name']); ?>
<div class="wrap">
    <div class="header">
        <?php echo $this->partial('header'); ?>    	
    </div>
    <div class="main">
        <div class="content">
            <div class="content_top">
                <div class="back-links">
                    <p><a href="<?php echo $this->url('home'); ?>">Trang chủ</a> >>>> 
                        <a href="<?php echo $this->url('product/product-by-category', array('cat_id' => $aryProduct['product_category_id'], 'cat_name' => $aryProduct['product_category_name_filter'])); ?>">
                            <?php echo $aryProduct['product_category_name']; ?>
                        </a>
                    </p>
                </div>
                <div class="clear"></div>
            </div>
            <div class="section group">
                <div class="cont-desc span_1_of_2">
                    <div class="product-details">				
                        <div class="grid images_3_of_2">
                            <div id="container">
                                <div id="products_example">
                                    <div id="products">
                                        <div class="slides_container">
                                            <img style="max-width: 100%" src="/upload/images/medium/<?php echo $aryProduct['product_image'] ?>">
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="desc span_3_of_2">
                            <h2><?php echo $aryProduct['product_name']; ?></h2>
                            <p>Hãng sản xuất : <a href="<?php
                                echo $this->url('product/product-by-category', array(
                                    'cat_id' => $aryProduct['category_id'],
                                    'cat_name' => $aryProduct['category_name_filter'],
                                    'maker_name' => $aryProduct['product_maker_maker_name_filter']
                                ));
                                ?>"><?php echo $aryProduct['product_maker_name']; ?></a>
                            </p>
                            <?php if (isset($aryProduct['product_price_sale_of'])) { ?>
                                <div class="price">
                                    <p>Giá : <span><?php echo number_format($aryProduct['product_price_sale_of'], 0, ',', '.') ?>₫</span></p>
                                    <p class="off">Giá chính hãng : <span><?php echo number_format($aryProduct['product_price'], 0, ',', '.') ?>₫</span></p>
                                </div>
                            <?php } else { ?>
                                <div class="price">
                                    <p>Giá : <span><?php echo number_format($aryProduct['product_price'], 0, ',', '.') ?>₫</span></p>
                                </div>
                            <?php } ?>
                            <div class="available">
                                <?php echo nl2br($aryProduct['product_spec_content']); ?>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="product_desc">	
                        <div id="horizontalTab">
                            <div class="resp-tabs-container">
                                <div class="product-desc">
                                    <?php echo $aryProduct['product_content_detail']; ?>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="rightsidebar span_3_of_1">
                    <ul>
                        <?php foreach ($aryCategory as $key => $category) { ?>
                            <li>
                                <a href="<?php echo $this->url('product/product-by-category', array('cat_id' => $category['category_id'], 'cat_name' => $category['category_name_filter'])); ?>">
                                    <?php echo $category['category_name']; ?>
                                </a>
                            </li>
                        <?php } ?>

                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>